/************************************************
*@brief:		Draw a card containing both images and text
*@author:		K. TANGAO   <futurchercheur1@gmail.com>
*@file:			RSSCardStrategy.h
*@date:			02/12/2008
*@Version:		1.0
*************************************************/

#include "LDF/VisComponentStrategy.h"
#include <string>
//formatString for the tex Drawing object
class formatString;
//To load image to be used in the card
class  ImageLoading;

class RSSCardStrategy : public VisComponentStrategy
{
public:
	/*Constructor: the constructor of the class
	*param[in]
			tex: the texture number to be used for drawing the texte
			imageLocation: the local image to be used in the component
	*/
	RSSCardStrategy(unsigned int *tex, std::string imageLocation, std::string textToDisplay);
	~RSSCardStrategy();

protected:
	/*function from VisComponent Strategy
	that must be implemented to draw the quad
	*/
	void draw(const std::vector<unsigned long>& selectedIds);
	void drawForPicking();

	//The function wich display the content of the card
	void displayCard();

	//The String Object 
	formatString *myStringObject;
	//Is the
	bool fontInitialized;
	//The texte is drawn as a texture so we need an identification of this tex
	unsigned int *myTex;
	ImageLoading * imageObject;
	unsigned int imageTex;

};
